<?php if ($this->pageCount > 1){ ?>
    <div class="paginationControl" align="center">
        <div class="page_conten">
            <div class="box_text_page">
                <?php 
                    if (isset($this->first) && $this->current > $this->first){
                        echo '<a class="prev numb item" href="' . $this->url(array('userId'=> $this->userId, 'mod' => $this->mod, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'gameS' => $this->gameS, 'page' => $this->first)). '">&laquo;</a>';
                    }
                    if (isset($this->previous)){
                        echo '<a class="prevx numb item" href="' . $this->url(array('userId'=> $this->userId, 'mod' => $this->mod, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'gameS' => $this->gameS, 'page' => $this->previous)). '">&lsaquo;</a>';
                    }
                    foreach ($this->pagesInRange as $page){
                        if ($page != $this->current){
                            echo  '<a class="numb item" href="' . $this->url(array('userId'=> $this->userId, 'mod' => $this->mod, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'gameS' => $this->gameS, 'page' => $page)). '">' . $page . '</a>';
                        }else{
                            echo '<span class="numb item">' . $page . '</span>';
                        }
                    }
                    if (isset($this->next)){
                        echo '<a class="next numb item" href="' . $this->url(array('userId'=> $this->userId, 'mod' => $this->mod, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'gameS' => $this->gameS, 'page' => $this->next)) . '">&rsaquo;</a>';
                    }
                    if (isset($this->last) && $this->current < $this->last){
                        echo '<a class="nextx numb item" href="' . $this->url(array('userId'=> $this->userId, 'mod' => $this->mod, 'startTime' => $this->startTime, 'endTime' => $this->endTime, 'gameS' => $this->gameS, 'page' => $this->last)). '">&raquo;</a>';
                    }
                ?>
                <div class="clear-both"></div>
            </div>
            <div class="clear-both"></div>
        </div>
    </div>
<?php } ?>